/*
 * =====================================================================================
 *
 *       Filename:  BranchNode.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  01/06/2022 09:49:16 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */

#include "BranchNode.h"
CBranchNode::CBranchNode(void) {
    m_isLeaf = false;
}

CBranchNode::CBranchNode(string name, string pos, int salary): CCorpNode(name, pos, salary) {
    m_isLeaf = false;
}

CBranchNode::~CBranchNode(void) {
}

void CBranchNode::Add(CCorpNode* pcorpNode) {
    pcorpNode->SetParent(this);
    m_subordinateList.push_back(pcorpNode);
}

vector < CCorpNode* >CBranchNode::GetSubordinateInfo() {
    return this->m_subordinateList;
}

bool CBranchNode::IsLeaf() {
    return m_isLeaf;
}
